import loginV from '../components/login/login.vue'
import ssoLoginV from '../components/login/sso-login.vue'
import profileV from '../components/profile/profile.vue'
import commonLayout from '../components/layout/common-layout.vue'
import Home from '../views/main/home.vue'

export const login = {
  path: '/login',
  name: 'login',
  meta: {
    title: 'Login - 登录',
    isAnonymous: true
  },
  component: loginV
}

export const ssoLogin = {
  path: '/sso-login',
  name: 'ssoLogin',
  meta: {
    title: 'ssoLogin - 登录',
    isAnonymous: true
  },
  component: ssoLoginV
}

export const layout = {
  path: '/',
  component: commonLayout,
  redirect: '/home',
  children: [{
    path: 'home',
    name: 'home',
    component: Home,
    meta: {
      title: '主页'
    }
  },
  {
    path: 'profile',
    name: 'profile',
    component: profileV,
    meta: {
      title: '个人中心'
    }
  }
  ]
}

export default {
  login,
  ssoLogin,
  layout
}
